﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace WXMarketing
{
    public partial class EmulatorFrm : Form
    {
        DataTable dt;
        public EmulatorFrm()
        {
            InitializeComponent();
        }

        private void EmulatorFrm_Load(object sender, EventArgs e)
        {
            string str = WXMarketing.WXCmdOperater.GetEmulators();
            dt = WXMarketing.WXStrAnalyser.AnalyseAVDDevice(str);
            EmulatorDataViewer.DataSource = dt;
        }

        private void EmulatorDataViewer_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            MessageBox.Show(dt.Rows[e.RowIndex]["Name"].ToString());
        }
    }
}
